#!/usr/bin/env node

async function logger(c,next){
  let start = Date.now();
  await next();
  let end = Date.now();
  console.log(`${c.path} ${c.method} ${end-start} ms`);
};

module.exports = logger;

